package com.lktx.bbfactory.common.exception;

import com.lktx.bbfactory.common.IErrorCode;

/**
 * 自定义API异常
 * Created by macro on 2020/2/27.
 */
public class BusinessException extends RuntimeException {

    public BusinessException(IErrorCode errorCode) {
        super(errorCode.getMessage());
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

}
